# 使用randint函数
from random import randint

rdm = [randint(1, 100) for i in range(20)]
print(rdm)

# 使用choice函数
from random import choice

seq = range(101)
rdm = [choice(seq) for i in range(20)]
print(rdm)


# 使用sample函数
from random import sample

seq = range(101)
rdm = sample(seq, 20)
print(rdm)